package Underworld_Survival;

import java.util.Arrays;
import java.util.List;
import Underworld_Survival.Skill;
import Underworld_Survival.Buff;

import static Underworld_Survival.Game.*;

/**
 * 示例：商人配置
 */
class MerchantConfig {
    // 商人前期配置（从19种商品中选5-7种）
    public static PeriodConfig<Item> earlyPeriod() {
        List<WeightedItem<Item>> candidates = Arrays.asList(
                new WeightedItem<>(new essenceGrass(),0.07),//[精华草]
                new WeightedItem<>(new poisonousMushroom(),0.1),//[毒蘑菇]
                new WeightedItem<>(new strongLiquor(),0.1),//[烈酒]
                new WeightedItem<>(new cycloneKick_SecretTechnique(),0.06),//【旋风腿秘法】
                new WeightedItem<>(new invincibleBodyDefense_SecretTechnique(),0.06),//【金刚护体秘法】
                new WeightedItem<>(new convergenceOfBlades_SecretTechnique(),0.02),//万剑归宗秘法
                new WeightedItem<>(new healthScroll(),0.09),//【血量卷轴】
                new WeightedItem<>(new elixir(),0.08),//{仙丹}
                new WeightedItem<>(new goldenApple(),0.08),//{金苹果}
                new WeightedItem<>(new resurrectionMedicine(),0.05),//{回生药}
                new WeightedItem<>(new flameSword(),0.02),//<烈焰之剑>
                new WeightedItem<>(new diamondSword(),0.05),//<钻石之剑>
                new WeightedItem<>(new heavyKnife(),0.07),//<重刀>
                new WeightedItem<>(new crackedNail(),0.03),//<爆裂甲>
                new WeightedItem<>(new thornyIron(),0.03),//<荆棘铁甲>
                new WeightedItem<>(new chainMail(),0.06),//<锁链甲>
                new WeightedItem<>(new magicalBoots(),0.03),//<魔法靴>
                new WeightedItem<>(new swiftShadowShoes(),0.03),//<迅影鞋>
                new WeightedItem<>(new sportsShoes(),0.06)//<运动鞋>

        );
        return new PeriodConfig<>(candidates,5, 7);
    }

    public static List<Item> permanentGoods() {//常驻商品
        List<Item> candidates = Arrays.asList(
                new summerWatermelon(),//[夏日西瓜]
                new largePieceOfMeat(),//[大肉]
                new panacea(),//[万能药]
                new nutritiousGrass(),//[营养草]
                new elixir(),//{仙丹}
                new goldenApple(),//{金苹果}
                new flyingSword(),//<飞剑>
                new woodenArmor(),//<木甲>
                new strawSandals(),//<草鞋>
                new ironHeadSkill_SecretTechnique()//【铁头功秘法】
        );
        return candidates;
    }

}